#ifndef LOADINGOVERLAY_H
#define LOADINGOVERLAY_H

#include <QWidget>
#include <QTimer>
#include <QPainter>

class LoadingOverlay : public QWidget {
    Q_OBJECT
public:
    explicit LoadingOverlay(QWidget* parent = nullptr);
    void showOverlay();
    void hideOverlay();

protected:
    void paintEvent(QPaintEvent*) override;

private:
    QTimer timer;
    ushort angle;
    QPainter painter;
};

#endif // LOADINGOVERLAY_H
